home *** CD-ROM | disk | FTP | other *** search
- Path: odin.visigenic.com!news
- From: Tim O'Neil <toneil@visigenic.com>
- Newsgroups: comp.lang.c
- Subject: Re: && operator question
- Date: Thu, 15 Feb 1996 12:57:48 +0000
- Organization: Visigenic Software, Inc.
- Message-ID: <31232DCC.39A7@visigenic.com>
- References: <4fu69a$b7e@sphinx.Gsu.EDU> <31236240.1417@oc.com>
- NNTP-Posting-Host: vsi48.visigenic.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- Larry Weiss wrote:
- >
- > Matthew A Johnson wrote:
- > > if(expression1 && expression2)
- > > some statement;
- > > My question is, if expression1 is false will expression2 get evaluated at
- > > all?
- > No. Why do you ask that question here?
-
- If not here, where? This is the C forum. Matthew; if you want control to
- fall through if either expression is true why don't you just write
- if(exp1 || exp2)
- stamt;
- ?
-